import multiprocessing as mul

def f(x):
    return x**2

if __name__ == '__main__':
    pool=mul.Pool(5)
    rel=pool.map(f,list(range(1,11)))
    pool.apply_async(print,('finished',))
    print(rel)
